package appapi.Vo.basic;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @version: java version 1.8
 * @Author: Ygp Work
 * @description:
 * @date: 2023-06-13 12:57
 */
@ApiModel(value = "导出设备自检")
@Data
public class ExcelSelfcheckVo {
    /**
     * 设备类型
     */
    @ApiModelProperty(value = "导出设备类型")
    @Excel(name = "设备类型", orderNum = "0", width = 20)
    private String equipTypeName;
    /**
     * 设备别名
     */
    @ApiModelProperty(value = "导出设备别名")
    @Excel(name = "设备别名", orderNum = "1", width = 20)
    private String equipName;
    /**
     * 规格型号
     */
    @ApiModelProperty(value = "导出规格型号")
    @Excel(name = "规格型号", orderNum = "2", width = 20)
    private String equipModel;
    /**
     * 所属机构
     */
    @ApiModelProperty(value = "导出所属机构")
    @Excel(name = "所属机构", orderNum = "3", width = 20)
    private String orgaName;
    /**
     * 自检人员
     */
    @ApiModelProperty(value = "导出自检人员")
    @Excel(name = "自检人员", orderNum = "4", width = 20)
    private String operId;
    /**
     * 整改要求
     */
    @ApiModelProperty(value = "导出整改要求")
    @Excel(name = "整改要求", orderNum = "5", width = 20)
    private String expRequire;
    /**
     * 是否正常
     */
    @ApiModelProperty(value = "导出是否正常")
    @Excel(name = "是否正常", orderNum = "6", width = 20,replace = {"正常_0","异常_1"})
    private String slefResult;

    /**
     * 自检时间
     */
    @ApiModelProperty(value = "导出自检时间")
    @Excel(name = "自检时间", orderNum = "7", width = 20,format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime dismDate;
}
